UNIT 1
- Introduction to Object Oriented Programming
- Difference between C and C++
- Elements of C++ Language
- Types of operators in C++
- Decision and Control Structures
- Dynamic Memory Management
UNIT 2
UNIT 3
UNIT 4
Sample Lab Work (indicative) (2 Credits, 60 Hours)
- Implement a basic calculator using functions and handle user input/output. Use a loop to allow the user to perform multiple calculations.
- Implement stack operations: push, pop, and display using arrays.
- Define a class with multiple attributes. Implement methods to set and get these attributes. Create objects of the class and manipulate class data.
- Create a class with a parameterized constructor and utilise it to initialise object attributes dynamically.
- Define a class with multiple constructors (default and parameterized) to showcase constructor overloading.
- Create two classes, declare a friend function that takes objects of both classes as arguments, and accesses their private/protected members. Use a friend function to access private and protected members of a class.
- Implement a static function that returns the value of a static variable (e.g., object count) without the need for an object.
- Implement a class that overloads the == operator to compare the values of two objects.
- Implement a three-level inheritance hierarchy and access members of all ancestors from the derived class.
- Implement a base class pointer that dynamically calls the correct derived class functions using virtual functions.
- Implement a program utilising public, protected, and private inheritance and observe how it influences member accessibility.
- Implement several functions with the same name but different parameters (different type/number).
- Implement an abstract class with pure virtual functions and override them in the derived class.
- Create a program to Merge two text files into a third one. Search for a particular piece of data in a file.
- Implement basic operations like adding, deleting, updating, and displaying elements of a vector and List.
- Implement a shopping cart using STL where products (with price and quantity) are stored using suitable STL containers and users can add, modify, and remove products from the cart.
- Write a program to implement a file compression algorithm.
- Write a program to implement a file encryption algorithm.
- Write a program to implement a template method using virtual functions.
- Write a program to demonstrate dynamic dispatch using virtual functions.
SUGGESTED TEXTBOOKS
- E. Balagurusamy: Object oriented programming with C++
- Bjarne Stroustrup: The C++ programming language.
- Robert Lafore: Object oriented programming in C++